package com.sy.core.web;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;


/**
 * 后台管理系统通用页面跳转
 */
@Controller
@RequestMapping("back")
public class Ctl extends BaseCtl{


    protected  static String prefix = "/back/";

    @RequestMapping("{path}")
    public ModelAndView index(ModelAndView mv, @PathVariable String path){
        mv.setViewName(prefix+path);
        return mv;
    }
    @RequestMapping("login")
    public ModelAndView login(ModelAndView mv){
        mv.setViewName(prefix+"login");
        return mv;
    }
}
